< previous page page_668 next page >

Page 668
If you go get a book yourself, the library is acting like a file server in that you are simply accessing a file (book) stored in it. On the other hand, if you request that the librarian help you, he or she will use his or her own expertise by asking questions and offering suggestions. In this case, the librarian is acting like a Web server because he or she is controlling your access to the files (books).
note.gif The method by which browsers and Web servers talk to each other is known as the Hypertext Transfer Protocol, or HTTP. square.gif

Because all requests go through the Web server, the Web server can modify the information returned to the browser however it sees fit. One typical example is including database information in a Web page. This can be accomplished by executing a program on the server that handles database access and returns information in a format that the browser can understand. The way that Microsoft provides this technology to VB programmers is known as Active Server Pages, or ASP.ASP is illustrated in Figure 30.2.
0668-01.jpg
Figure 30.2
Active Server Pages are HTML with script code that
is executed on the server before the user sees the results.
ASP is an exciting and powerful Web technology, so much so that it has its own chapter in this bookChapter 31, "Active Server Pages."
VBScript in the Browser
In addition to using VBScript on the Web server, VBScript code can be executed on the user's desktop. To understand how this works, you have to know a little about the language in which Web pages are written: HTML.
HTML, which stands for Hypertext Markup Language, consists of some formatting codes that allow an author to create hyperlinks and format the document. The HTML language is fairly easy to understand, even for newcomers, as illustrated in the following example:
<FONT SIZE = "+2"> This is a sample web Page! </FONT> <BR>
<B> I hope you enjoy it! </B> <BR><BR>
The following is a hyperlink:  <A HREF = "http://www.que.com"> Click me! </A>
HTML includes both the document text and formatting codes. A special viewer, known as a browser, interprets the formatting codes and displays the Web page. A browser displaying the preceding lines of HTML is shown in Figure 30.3.

 
< previous page page_668 next page >